package com.lzx.makeFriend.feign;

import com.lzx.makeFriend.entity.vo.Problem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Component
@FeignClient("five-cube-answer")
public interface AnswerClient {
    //获取当前用户关注的人发表的问题
    @GetMapping("/answer/problem/web/getUserAttentionPublishProblem/{userIds}")
    List<Problem> getUserAttentionPublishProblem(@PathVariable List<Integer> userIds);

    //根据id查询问题
    @GetMapping("/answer/problem/web/getProblem/{problemId}")
    Problem getProblem(@PathVariable int problemId);
}
